#!/usr/bin/env python
# -*- coding:utf-8 -*-

li=[]
print any(li)     #只要有一个是true，返回true
li=['','',3]
print any(li)

li=[1,2,3]
print all(li)     #全为真，才返回false

li=[1,'',3]
print all(li)   #返回时false